package cn.xw.controller;

import cn.xw.service.MemberFeign;
import cn.xw.service.OrderFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class ClientController {

    @Autowired
    MemberFeign memberFeign;

    @Autowired
    OrderFeign orderFeign;

    @RequestMapping("/getUser")
    public Map<String ,Object> getUserInfo(){
        return memberFeign.getUserInfo();
    }

    @RequestMapping("/getOrder")
    public Map<String ,Object> getOrder(){
        return orderFeign.getOrder();
    }

}
